.root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid;
    border-radius: var(--border-radius);
}

.contained {
    border-color: transparent;
    background-color: var(--color-fig);
    color: var(--color-white);

    &:hover {
        background-color: var(--color-fig_hover);
    }
}

.outline {
    border-color: var(--border-color);
    background-color: var(--main-bg-color);
    color: var(--text-fig);

    &:hover {
        background-color: var(--main-bg-hover-color);
    }
}

.outlineError {
    background-color: var(--color-error);
    color: #fff;
    border: 1px solid #f00;
    transition: background-color 0.3s ease, border-color 0.3s ease;

    &:hover {
        background-color: #fff;
        color: #f00;
        border-color: #f00;
    }
}

.small {
    padding: 4px 8px;
}

.medium {
    padding: 8px 12px;
}

.large {
    padding: 12px 16px;
}

.disabled {
    color: var(--color-disabled);
    background-color: var(--bg-color-disabled);
    cursor: not-allowed;

    &:hover {
        background-color: var(--bg-color-disabled);
    }
}
